package com.jebel.framwork.common.response;

public enum RespCode {
    CODE_10200(10200, "success"),
    CODE_10500(10500, "error"),
    CODE_10600(10600, "timed-out");

    private Integer code;
    private String msg;

    RespCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }

    @Override
    public String toString() {
        return String.valueOf(code);
    }
}
